package com.fxz.oauth.controller;

import com.fxz.oauth.domain.dto.UserDto;
import lombok.AllArgsConstructor;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.validation.Valid;

/**
 * 测试用的CONTROLLER
 * @author Fxz
 * @version 1.0
 * @date 2021-08-03 16:24
 */
@AllArgsConstructor
@RequestMapping("/api")
@RestController
public class ApiResource {


    @PostMapping("/userInfo")
    public UserDto register( @RequestBody UserDto userDto) {
        return userDto;
    }

}
